package com.smarthome.base.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.smarthome.base.dao.ShSysHeartbeatDao;
import com.smarthome.base.dao.base.BaseDaoImpl;
import com.smarthome.domain.bean.ShSysHeartbeat;

/**
 * 
* @ClassName: ShSysHeartbeatDaoImpl
* @Description: TODO(ShSysHeartbeatDao实现类)
* @author cyj
* @date 2015年9月28日 下午10:08:05
*
 */
@Repository("shSysHeartbeatDao")
public class ShSysHeartbeatDaoImpl extends BaseDaoImpl<ShSysHeartbeat, Long> implements ShSysHeartbeatDao {

	private final static String NAMESPACE = "com.smarthome.base.dao.ShSysHeartbeatDao.";
	
	@Override
	public String getNameSpace(String statement) {
		return NAMESPACE + statement;
	}

	@Override
	public long queryShSysHeartbeatsCount(ShSysHeartbeat queryShSysHeartbeat) {
		return this.select(getNameSpace("queryShSysHeartbeatsCount"), queryShSysHeartbeat);
	}

	@Override
	public List<ShSysHeartbeat> queryShSysHeartbeats(ShSysHeartbeat queryShSysHeartbeat) {
		return this.selectList(getNameSpace("queryShSysHeartbeats"), queryShSysHeartbeat);
	}

	

}
